<?php
$oNotes = NoteHandler::getNotes($_SESSION['iJobID'], $_REQUEST['iMissionID']);
?>
<div id="layer_note_change" class="hidden" style="visibility: visible;">
<form action="index.php" method="post" name="form_note_change">
<input type="hidden" name="sAction" value="note-change">
<input type="hidden" name="iMissionID" value="<?php print $_REQUEST['iMissionID'] ?>">
<input type="hidden" name="iNoteID" value="<?php print $_REQUEST['iNoteID'] ?>">
<input type="hidden" name="sView" value="<?php print $_REQUEST['sView'] ?>">
<table class="boxborder" cellspacing="0">
	<tr>
		<td class="boxhandle" colspan="2"><?php print msg('Change note') ?></td>
	</tr>
	<tr>
		<td class="boxbody" colspan="2"><textarea name="sBody" cols="75" rows="14" id="focus_note_change"><?php print stripslashes($oNotes[$_REQUEST['iNoteID']]->sBody) ?></textarea></td>
	</tr>
	<tr>
		<td class="fieldname" style="width: 50%;"><?php print msg('Use HTML') ?>:</td>
		<td class="fieldvalue" style="width: 50%;"><input type="checkbox" name="bUseHTML" <?php print ($oNotes[$_REQUEST['iNoteID']]->bUseHTML ? 'checked' : '') ?>></td>
	</tr>
	<tr>
		<td class="boxbody center" colspan="2">
			<input type="submit" value="<?php print msg('OK') ?>">
			<input type="button" value="<?php print msg('Cancel') ?>" onClick="layerHide('layer_note_change');">
		</td>
	</tr>
</table>
</form>
</div>
